﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;
using Excell_On_Services.Models;

namespace Excell_On_Services.ViewModels
{
    public class AboutModel
    {
        [HiddenInput(DisplayValue = false)]
        public int? AboutID { get; set; }

        [Required(ErrorMessage="Category is required")]
        public int CategoryID { get; set; }

        [Required(ErrorMessage = "Title is required")]
        [StringLength(512,ErrorMessage="Title lenght must less than 512 character ")]
        public string tilte { get; set; }


        [DataType(DataType.MultilineText)]
        public string Content { get; set; }

        public DateTime? publishedDate { get; set; }
	    public DateTime? ModifiedDate;

        public bool CheckActive { get; set; }
        public bool CheckShow { get; set; }

        public CategoryNew Category { get; set; }
    }
}